#pragma once
#include<stdlib.h>
#include<stdbool.h>
#include<stdio.h>
#include<assert.h>

typedef int typedata;
typedef struct Heap
{
	typedata* a;
	int capacity;
	int size;
}HP;

void Heapinit(HP* root);
void Heapdestroy(HP* root);
void Heappush(HP* root,typedata x);
void Heappop(HP* root);
bool  Heapempty(HP* root);
typedata Heaptop(HP* root);
typedata Heapsize(HP* root);

